package com.zzjson.mall.util;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2020 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : TODO </li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2020年10月21日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public enum RespCode {
	SUCCESS(20000, "操作成功"),

	ERROR(50000, "操作失败"),

	SYSTEM_ERROR(50001, "系统错误");

	private Integer code;
	private String message;

	RespCode(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	RespCode() {
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}